import Vue from 'vue'
import VueRouter from 'vue-router'
Vue.use(VueRouter)
let Foo = () => import('./components/Foo.vue')
let Bar = () => import('./components/Bar.vue')
export default () => {
  const router = new VueRouter({
    mode: 'history',
    routes: [
      { path: '/', component: Foo },
      { path: '/bar', component: Bar }
    ]
  })
  return router
}
